#ifndef FILESERVER_H
#define FILESERVER_H

#include "absserver.h"
#include "filesocket.h"

class FileServer : public AbsServer {
    Q_OBJECT
public :
    explicit FileServer(QObject *parent = 0);
    ~FileServer();
signals:
    void signalRecvFinished(int id, const QJsonValue &json);
private:
    // 客户端管理
    QVector<FileSocket *> m_clients;

private slots:
    void SltNewConnection();
    void SltConnected();
    void SltDisConnected();
    void SltClientDownloadFile(const QJsonValue &json);
};

#endif // FILESERVER_H
